package com.bw.car.adapter

import android.widget.TextView
import com.bw.car.R
import com.bw.car.entity.StopCarEntityItem
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class StopRecordAdapter:BaseQuickAdapter<StopCarEntityItem,BaseViewHolder>(R.layout.item_stop_record) {
    override fun convert(holder: BaseViewHolder, item: StopCarEntityItem) {
        holder.getView<TextView>(R.id.tv_carCode).text="车牌号: ${item.plateNumber}"
        holder.getView<TextView>(R.id.tv_carTime1).text="${item.entryTime}"
        holder.getView<TextView>(R.id.tv_carTime2).text="${item.parkingDuration}分钟"
        holder.getView<TextView>(R.id.tv_carMoney).text="${item.paymentAmount}元"
    }
}